//
//  HomePageUserDataController.m
//  ShowYork
//
//  Created by hxh on 2020/11/28.
//  Copyright © 2020 hxh. All rights reserved.
//

#import "HomePageUserDataController.h"
#import "HomePageUserInfoYearCell.h"
@implementation HomePageUserDataController
- (void)didUpdateToObject:(id)object{
    _model = object;
}
- (NSInteger)numberOfItems{
    return 1;
}
- (CGSize)sizeForItemAtIndex:(NSInteger)index{
    return CGSizeMake(kScreenW, 40);
}
-(UICollectionViewCell *)cellForItemAtIndex:(NSInteger)index{
    
    HomePageUserInfoYearCell *cell = [self.collectionContext dequeueReusableCellOfClass:[HomePageUserInfoYearCell class] forSectionController:self atIndex:index];
    [cell setModel:self.model];
    return cell;
}

@end
